package com.xb.service;


import com.xb.entity.Announcement;
import com.xb.util.Result;

import java.util.List;

/**
 * Service接口
 */
public interface IAnnouncementService
{

    /**
     * 查询列表
     * @param announcement 
     * @return 集合
     */
    public List<Announcement> selectAnnouncementList(Announcement announcement);

    /**
     * 分页查询列表
     * @param announcement 
     * @return 集合
     */
    public Result selectAnnouncementList(Announcement announcement, Integer page, Integer limit);

    /**
     * 新增
     * @param announcement 
     * @return 结果
     */
    public Result insertAnnouncement(Announcement announcement);

    /**
     * 修改
     * @param announcement 
     * @return 结果
     */
    public Result updateAnnouncement(Announcement announcement);

    /**
     * 删除信息
     * @param id ID
     * @return 结果
     */
    public Result deleteAnnouncementById(Integer id);

    public List<Announcement> selectAnnouncementListByStatus(int status);
}
